/*
 * @Author: zw 775925302@qq.com
 * @Date: 2023-02-12 21:16:41
 * @LastEditors: zw 775925302@qq.com
 * @LastEditTime: 2023-02-18 09:14:45
 * @Description:
 */
export default {
  name: "按钮",
  component: "DButton",
  icon: "cmp-button",
  cmpType: "component",
  attrs: {
    size: "small",
    type: "primary",
    plain: false,
    link: false,
    loading: false,
    disabled: false,
    dark: false,
    value: "button",
  },
  attrWidgets: [
    {
      name: "按钮文本",
      key: "value",
      component: "AInput",
      pos: "base",
      labelWidthAuto: false,
      visible: true,
      hidden: false,
      attrs: {
        placeholder: "请输入文字",
      },
    },
    {
      name: "类型",
      key: "type",
      component: "ASelect",
      labelWidthAuto: false,
      pos: "base",
      hidden: false,
      visible: true,
      attrs: {
        selectAttrs: {},
        optionAttrs: {
          label: "label",
          value: "value",
        },
        options: [
          { label: "主", value: "primary" },
          { label: "成功", value: "success" },
          { label: "告警", value: "warning" },
          { label: "危险", value: "danger" },
          { label: "信息", value: "info" },
        ],
      },
    },
    {
      name: "尺寸",
      key: "size",
      component: "ASelect",
      pos: "base",
      hidden: false,
      visible: true,
      attrs: {
        selectAttrs: {},
        optionAttrs: {
          label: "label",
          value: "value",
        },
        options: [
          { label: "大", value: "large" },
          { label: "中", value: "default" },
          { label: "小", value: "small" },
        ],
      },
    },
    {
      name: "是否为朴素按钮",
      key: "plain",
      labelWidthAuto: false,
      component: "ASwitch",
      pos: "base",
      visible: true,
      hidden: false,
      attrs: {},
    },
    {
      name: "是否为链接按钮",
      key: "link",
      component: "ASwitch",
      pos: "base",
      labelWidthAuto: false,
      visible: true,
      hidden: false,
      attrs: {},
    },
  ],
  events: [
    {
      name: "click",
      subfix: "",
      callFn: "",
      constParam: "",
    },
  ],
  style: {
    width: 80,
    height: 32,
    left: 0,
    top: 0,
    borderRadius: 4,
    borderRadiusPos: [1, 1, 1, 1],
    isBorderShadow: false,
    borderShadow: [5, 5, 5, 0, "#ff0000"],
    isBorderShadowInset: false,
    borderShadowInset: [5, 5, 5, 0, "#ff0000"],
  },
  class: [],
};
